SRCS = timerthread.cpp bthread.cpp cfgparse.cpp epoll_single.cpp event.cpp lock.cpp log.cpp Md5.cpp netstm.cpp  timer.cpp 
OBJS = timerthread.o bthread.o cfgparse.o epoll_single.o event.o lock.o log.o Md5.o netstm.o  timer.o
HDRS = ../define/define.h
LIBUTILS = libutil.a

CC = g++
CFLAGS = -c -g
INCLUDES = ../define
%.o : %.cpp
	$(CC) $(CFLAGS) -I$(INCLUDES) $< $(LDFLAGS) -o  $@

$(LIBUTILS): $(OBJS)
	ar -cr $(LIBUTILS) $(OBJS)
	ranlib $(LIBUTILS)

clean:
	rm -f *.o *.a
